/*
 * @Author: minglic minglic@foxmail.com
 * @Date: 2023-11-04 15:16:09
 * @LastEditors: minglic minglic@foxmail.com
 * @LastEditTime: 2023-11-04 15:51:31
 * @FilePath: \go2023\admin\test\init.go
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package test

import (
	"sxk.games/m/v2/core/entity"
	"sxk.games/m/v2/core/utils/data"
)

func init() {

	data.OpenSqlite("./data.sqlite")

	data.GetDb().AutoMigrate(
		&entity.Device{},
		&entity.Site{},
		&entity.User{},
		&entity.Role{},
	)

}
